﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true"
    CodeBehind="TrustRegionDetails.aspx.cs" Inherits="MockPrjTeam2.Pages.Forms.WebForm1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <link href="../../Resource/CSS/style/reset.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/root.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/grid.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/typography.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/jquery-plugin-base.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.min.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/toogle.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.tipsy.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.uniform.min.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.tablesorter.min.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/popup.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.ui.widget.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.ui.accordion.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.ui.tabs.js") %>"></script>
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs();
        });

        function ConfirmApproval(message) {
            if (confirm(message)) {
            } else {

            }
        }
    </script>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="grid740 simplebox relative">
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="trustregion"
            ForeColor="Red" />
            <h2 style="color: #639A18; font-family: Arial, Helvetica, sans-serif; font-size: large; font-weight: bold;">
            Trust Region Details</h2>
        <div id="tabs">
            <ul>
                <li>
                    <asp:HyperLink ID="LinkDetails" NavigateUrl="#DetailsPanel" runat="server">Details </asp:HyperLink></li>
                <li>
                    <asp:HyperLink ID="LinkTrustDistrict" NavigateUrl="#TrustDistrictPanel" runat="server">Trust District List </asp:HyperLink></li>
            </ul>
            <asp:HiddenField ID="HiddenFieldTrustRegionId" runat="server"/>
            <span class="top-right-cornor">
                <asp:Button ID="ButtonInactive" runat="server" Text="In-active" Width="82px"
                CommandName="active" CausesValidation="False" OnCommand="ButtonInactive_Command"/>
                <asp:Button ID="ButtonSave" runat="server" Text="Save" Width="82px" OnClick="btnSave_Click" ValidationGroup="trustregion"/>
                <asp:Button ID="ButtonBack" runat="server" Text="Back" PostBackUrl="~/Pages/Views/TrustRegionList.aspx"
                    Width="82px" />
            </span>
            <asp:Panel ID="DetailsPanel" runat="server" ClientIDMode="Static">
                <div class="st-form-line-noleft">
                    <table style="width: 100%">
                        <tr>
                            <td style="width: 125px">
                                <asp:Label ID="LabelCountry" runat="server" Text="Nation/Country" AssociatedControlID="DropDownListCountry"></asp:Label>
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownListCountry" DataTextField="CountryName" DataValueField="CountryId"
                                    runat="server" Width="160" CssClass="st-forminput"></asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 125px">
                                <asp:Label ID="LabelTrustRegionName" runat="server" Text="Trust Region Name" AssociatedControlID="TxtTrustRegionName"/>
                                    <asp:RequiredFieldValidator ID="RequiredTrustRegionName" runat="server" ErrorMessage=" * Please input Trust Region Name  " 
                                    ControlToValidate="TxtTrustRegionName" ForeColor="red" SetFocusOnError="true" Display="Dynamic" 
                                    ValidationGroup="trustregion">*</asp:RequiredFieldValidator>
                            </td>
                            <td>
                                <asp:TextBox ID="TxtTrustRegionName" runat="server" Width="160px" CssClass="st-forminput" ValidationGroup="trustregion"></asp:TextBox>
                                <asp:Label ID="lblCheckTrustRegionName" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 125px">
                                <asp:Label ID="LabelDescription" runat="server" Text="Description" AssociatedControlID="TxtDescription"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TxtDescription" runat="server" Width="160px" Height="47px" CssClass="st-forminput"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </div>
            </asp:Panel>
            <asp:Panel ID="TrustDistrictPanel" runat="server" ClientIDMode="Static" Visible="False">
                <asp:UpdatePanel ID="UpdatePanelTrustDistrictList" runat="server">
                    <ContentTemplate>
                        <asp:PlaceHolder ID="HolderDirectorate" runat="server"></asp:PlaceHolder>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </asp:Panel>
        </div>
    </div>
</asp:Content>
